#   SCE CONFIDENTIAL
#   PLAYSTATION(R)3 Programmer Tool Runtime Library 192.001
#   Copyright (C) 2005 Sony Computer Entertainment Inc.
#   All Rights Reserved.
#

.PHONY:  clean user-clean

#----------------------------------------------------------
#
#----------------------------------------------------------
include $(CELL_MK_DIR)/sdk.target-mk.mk
include $(CELL_MK_DIR)/sdk.target-ppu.mk
include $(CELL_MK_DIR)/sdk.target-prx.mk
include $(CELL_MK_DIR)/sdk.target-spu.mk
include $(CELL_MK_DIR)/sdk.target-cg.mk

TARGET += $(EXTRA_TARGET)

all: $(TARGET)

$CLEANFILES := $(strip $(CLEANFILES))
user-clean:
ifneq ($(CLEANFILES),)
	$(RM) $(CLEANFILES)
endif

clean: ppu-clean ppu-prx-clean spu-clean cg-clean $(MK_TARGET_CLEAN) $(SUBDIRS_CLEAN) user-clean
	@echo "# removing $(OBJS_DIR)/ if it is empty."
	@$(FIND) . -type d -and \( -path "./$(OBJS_DIR)" -or -path "./$(OBJS_DIR)/*" \) -print \
		| $(SORT) -r | xargs -r rmdir 2>/dev/null | true

